package com.intelligentmeterreadingsys.util;



import android.content.SharedPreferences;

public class KsiSharedStorageHelper {

	public static final String BLUETOOTH_MAC = "bluetooth_mac";

	public static void setBluetoothMac(SharedPreferences sharedPreferences,
			String mac) {
		SharedPreferences.Editor editor = sharedPreferences.edit();
		editor.putString(BLUETOOTH_MAC, mac);
		editor.commit();
	}

	public static String getBluetoothMac(SharedPreferences sharedPreferences) {
		String strData = sharedPreferences.getString(BLUETOOTH_MAC, "");
		return strData;
	}

	public static void deleteBluetoothMac(SharedPreferences sharedPreferences) {
		sharedPreferences.edit().clear();
	}

}
